package PolymorphismLearning;

import InterfaceLearning.IPhotoThird;

public class Camaro implements IPhotoThird {

    private String name;
    private double price;

    public Camaro(String name) {

        this.name = name;
    }

    public Camaro(String name, double price) {

        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public void photo() {
        System.out.println("可以拍照");
    }

    @Override
    public void focus() {
        System.out.println("可以聚焦");
    }

    @Override
    public void zoom() {
        System.out.println("可以缩放");
    }


}
